import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int sc = 23;
        int count = 0;
        for (int i = 0; i < 3; i++) {
            int input = scan.nextInt();
            if(input == sc) {
                System.out.println("登录成功");
                break;
            }else {
                System.out.println("登录失败，重试");
                count++;
            }
        }
        if(count == 3){
            System.out.println("退出");
        }
        scan.close();
    }
}